package com.example.Lezedata.ui.activity.common;

import android.content.Context;
import android.os.Bundle;
import android.service.quicksettings.Tile;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.example.Lezedata.R;

public class MoneyItem extends LinearLayout {

    public TextView Title;
    public TextView Money;

    public MoneyItem(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        View.inflate(context, R.layout.show_money_item, this);
    }

    public static MoneyItem newInstance(Context context) {
        MoneyItem fragment = (MoneyItem) LayoutInflater.from(context).inflate(R.layout.show_money_item,null,false);
        return fragment;
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        Title = findViewWithTag("Title");
        Money = findViewWithTag("Money");
    }
}
